package com.efast.dmom.aps.tree;

import java.util.Map;

import org.apache.ibatis.jdbc.SQL;
import org.springframework.stereotype.Component;

import com.efast.cafe.commponent.tree.annotation.LoadTreeNode;
import com.efast.cafe.commponent.tree.core.ExpandLoadNodeProcessor;
import com.efast.cafe.portal.bean.common.EntityInfoBean;

@Component
@LoadTreeNode(entityKey = "aps_production_line", rootEntityKey = "FactoryModeling", treeTypeCode = "FactoryModeling")
public class TreeProduction implements ExpandLoadNodeProcessor{

	@Override
	public void afterLoad(EntityInfoBean arg0, Map<String, Object> arg1, Map<String, Object> arg2) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void beforeLoad(EntityInfoBean arg0, SQL arg1, Map<String, Object> arg2, Map<String, Object> arg3) {
		arg1.WHERE("aps_production_line.row_status = 1");
		
	}

}
